package com.itcast.stargraph.constant;

/**
 * 缓存前缀常量
 *
 * @Author katana
 * @Date 2025/6/11 14:37
 */
public class CacheConstant {
    
    /**
     * websocket客户端唯一标识，必须与前端一致
     */
    public static final String WS_CLIENT_ID = "star-graph";
    
    /**
     * 分布式ID计数器KEY
     */
    public static final String REDIS_KEY_COUNTER = "star:graph:counter";
    
    
    /**
     * 分布式队列ZSET的KEY
     */
    public static final String REDIS_KEY_QUEUE = "start:graph:task:queue";
    
    /**
     * ComfyuiTask任务存储String的KEY前缀
     */
    public static final String REDIS_KEY_TASK_PREFIX = "start:graph:task:%s";
    /**
     * websocket任务存储String的KEY前缀
     */
    public static final String WS_TASK_REDIS_KEY = "star:graph:ws:task:%s";
}
